import axios from "@/setting/axios";
//运动队接口

export function getAllList(params) {
  console.log(`output->getAllList`, params);
  return axios.get("/admin/team/members", { params });
}

// 新增（单个）接口
export function addInfo(data) {
  console.log(`output->addInfo`, data);
  return axios.put("/admin/team/members/add", data);
}

// 删除（单个）接口
export function deleteInfo(params) {
  console.log(`output->deleteInfo`, params);
  return axios.delete("/admin/team/members", { params });
}

// 修改（单个）接口
export function updateInfo(params, data) {
  console.log(`output->updateInfo`, params, data);
  return axios.post("/admin/team", {
    params,
    data,
  });
}
